<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<script type="text/javascript">
			window.jQuery || document.write("<script src='${jpath}/static/assets/js/jquery-2.0.3.min.js'>"+"<"+"script>");
		</script>

		<script type="text/javascript">
			if("ontouchend" in document) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"script>");
		</script>
		<script src="${jpath}/static/assets/js/bootstrap.min.js"></script>
		<script src="${jpath}/static/assets/js/typeahead-bs2.min.js"></script>


		<script src="${jpath}/static/assets/js/jquery-ui-1.10.3.custom.min.js"></script>
		<script src="${jpath}/static/assets/js/jquery.ui.touch-punch.min.js"></script>
		<script src="${jpath}/static/assets/js/jquery.slimscroll.min.js"></script>
		<script src="${jpath}/static/assets/js/jquery.easy-pie-chart.min.js"></script>
		<script src="${jpath}/static/assets/js/jquery.sparkline.min.js"></script>
		<script src="${jpath}/static/assets/js/flot/jquery.flot.min.js"></script>
		<script src="${jpath}/static/assets/js/flot/jquery.flot.pie.min.js"></script>
		<script src="${jpath}/static/assets/js/flot/jquery.flot.resize.min.js"></script>


		<script src="${jpath}/static/assets/js/ace-elements.min.js"></script>
		<script src="${jpath}/static/assets/js/ace.min.js"></script>
		<script src="${jpath}/js/system_plugins.js"></script>

<script type="text/javascript">

	$("#logout").click(function(){
		location.href="${jpath}/login/logout";
	});
	
	function getForm(_from){
		var dataJson="";
		var dataArr=[];
		$(_from).find(":input").each(function(e,_this){
			if($(_this).attr("type") == "radio"){
				if($(_this).is(":checked")){
					var iptName=$(_this).attr("name");
					if(iptName!="" && iptName!=null){
						dataArr.push(iptName+":'"+$(_this).val()+"'");
					}
				}
			}else{
				var iptName=$(_this).attr("name");
				if(iptName!="" && iptName!=null){
					dataArr.push(iptName+":'"+$(_this).val()+"'");
				}
			}
		});
		dataJson+="{"+dataArr.join(",")+"}";
		var jsonForms=eval("("+dataJson+")");
		return jsonForms;
	}
</script>







		